v477 Fleet Map Non-Live Marker Lifecycle Dashboard and Stale-Position Cleanup
Decision
Reviewed v476 Fleet Map controlled blue/non-live marker refresh execution and rollback and proceeded with v477 Fleet Map non-live marker lifecycle dashboard and stale-position cleanup.
The build intentionally hardens the post-execution/non-live monitoring layer before any driver-app GPS intake, GPS/ELD provider connection, Google Geocoding/Routes API activation, payment collection change, broker distribution limit change, owned portal rule change, internal load-board access change, or Transportation Accounting activation.
What changed
- Added a non-live marker lifecycle readout to every Fleet Map position.
- Added lifecycle states for normal watch, pending review, approved/staged refresh, ready to execute, executed blue refresh, rolled back, disputed refresh, stale cleanup needed, and live GPS protected.
- Added stale non-live marker cleanup thresholds for watch, cleanup needed, and do-not-trust status.
- Added route recalculation readiness labels for stale, do-not-trust, watch, off-route, and needs-review non-live markers.
- Added a Fleet Map lifecycle dashboard that groups pending, staged, executed, rolled-back, disputed, stale-cleanup, live-protected, driver-check-in, and route-recalculation-ready records.
- Added Lifecycle and Stale cleanup filters, summary counts, selected-truck lifecycle readout, truck-list chips, map hover/info-window labels, search coverage, and CORI prompts.
- Added .env.example thresholds for non-live stale-watch, cleanup-needed, and do-not-trust minutes.
What's Visible
In Workspace Operations / Fleet Map
- New Lifecycle and Stale cleanup filters appear in the Fleet Map filter row.
- A new lifecycle cleanup summary tile shows lifecycle review, stale cleanup, driver check-in, do-not-trust, and route recalculation counts.
- A new Marker lifecycle dashboard panel groups non-live marker refresh and stale cleanup work.
- The selected truck panel now shows lifecycle status, trust label, stale cleanup reason, route recalculation readiness, lifecycle timeline, cleanup checklist, and lifecycle guardrails.
- Truck cards, map hover cards, and map info windows show lifecycle labels.
- CORI prompts now include lifecycle dashboard, stale cleanup, do-not-trust, and route recalculation review questions.
Rule Check
- Green marker = live driver-app GPS only: Yes.
- Dispatcher-confirmed/manual records stay blue/non-live: Yes.
- v477 lifecycle cleanup labels silently move marker coordinates: No.
- v477 lifecycle dashboard turns any marker green: No.
- v476 controlled blue/non-live execution and rollback behavior remains guarded: Yes.
- Real GPS/ELD/telematics providers connected: No.
- Google Geocoding/Routes/Places server API calls activated: No.
- Driver messaging activated: No.
- Payment collection changed: No.
- Broker distribution limits changed: No.
- Owned portal rules changed: No.
- Internal load-board access changed: No.
- Transportation Accounting workflows activated: No.
- Prisma schema changed: No.
Validation
- npm run dispatchspot:preflight passed.
- Targeted TypeScript parser checks passed for changed Fleet Map files.
- npm run build could not complete in the sandbox because dependencies are not installed here: next: not found.